package com.imooc.poker;

/**
 * @author duyong
 * @version 1.0
 * @date 2019/10/24 15:44
 */

import javax.smartcardio.Card;
import java.util.ArrayList;
import java.util.List;

/**
 * 手牌
 */
public class HandCards implements Comparable<HandCards>{
    //花色
    private String colour;
    //点数
    private String point;
//大小
    private int size;
    public HandCards(){

    }
     //初始化构造器
    public HandCards(String colour,String point,int size){
        this.colour=colour;
        this.point=point;
        this.size=size;
    }
    public String toString() {
        return colour + point;
    }


    public int compareTo(HandCards arg0) {
        if (this.size < arg0.size) {
            return -1;
        } else {
            return 1;
        }
    }


    public String getColour() {
        return colour;
    }

    public void setColour(String colour) {
        this.colour = colour;
    }

    public String getPoint() {
        return point;
    }

    public void setPoint(String point) {
        this.point = point;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }
}
